define(function(require, exports, module)
{
  var $ = require("$");
  require('bootstrap_commonrequire');

  var form_tpl = require("./phonebillexceptionmodal.tpl");
  var Widget = require("widget");
  var handlebars = require("handlebars");

  var modaldialog = Widget.extend(
  {
    handlebars : handlebars,
    template : form_tpl,
    // 初始化参数
    initCustAttr : function()
    {
    },
    afterRender : function()
    {
      $('#my_phonebill_id').modal('hide');
    }
  });

  exports.init = function(param)
  {
    new modaldialog(
    {
      attrs :
      {
        id : "my_phonebill_id",
        title : param.title,
        details: param.details
      },
      renderTo : param.renderTo
    });
    $('#my_phonebill_id').modal('show');
  };
});
